package com.itboye.system.exception;

/**
 * Created by hebidu on 16/5/10.
 */
public class ByBaseException extends Exception {
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    private String code;

    public ByBaseException(String message){
        super(message);
        this.setCode("-1");
    }

    public ByBaseException(String message, String code){
        super(message);
        this.setCode(code);
    }

}
